package com.thunbu.thunbu_meeting_system.view.imagePick

import android.widget.ImageView
import com.bumptech.glide.Glide
import com.lcw.library.imagepicker.utils.ImageLoader
import com.thunbu.thunbu_meeting_system.App

class GlideLoader : ImageLoader {
    override fun loadImage(imageView: ImageView, imagePath: String?) {
        Glide.with(App.instance).load(imagePath).into(imageView)
    }

    override fun loadPreImage(imageView: ImageView, imagePath: String?) {
        Glide.with(App.instance).load(imagePath).into(imageView)
    }

    override fun clearMemoryCache() {
        Glide.get(App.instance).clearMemory()
    }
}